package com.zcsy.manage.model.weixin;

import java.io.Serializable;

/**
 * @Title: AccessToken.java
 * @Package： com.zcsy.shop.model.weixin 
 * @Description: 微信访问票据
 *    <p>要求所有用户公用一个access_token，保证token不失效</p>
 *
 * @author tanghan barbadosliy@163.com
 * @Copyright: 2015 武汉中财数元信息技术有限公司 All rights reserved.
 * @date 2015年11月23日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
public class AccessToken implements Serializable{

	/**
	 * 序列化版本号<br>
	 */
	private static final long serialVersionUID = 121894177610647198L;
	
	//主键id
	private int id;

	// 获取到的凭证
	private String token;
    
	// 凭证有效时间，单位：秒
    private int expiresIn;
    
    /**
     * 创建时间距离当前时间毫秒数<br>
     * 此处要求时间精确到毫秒
     */
    private int createTime;
    
    /**
     * 修改token的用户id（微信里面纪录openid）<br>
     */
    private String userid;
    
    /**
     * 创建时间<br>
     */
    private String createDate;
    
    /**
     * 微信jsAPITicket;
     */
    private String ticket;
    
	/**
	 * @return Returns the token.
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param token The token to set.
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return Returns the token.
	 */
	public String getToken() {
		return token;
	}

	/**
	 * @param token The token to set.
	 */
	public void setToken(String token) {
		this.token = token;
	}

	/**
	 * @return Returns the expiresIn.
	 */
	public int getExpiresIn() {
		return expiresIn;
	}

	/**
	 * @param expiresIn The expiresIn to set.
	 */
	public void setExpiresIn(int expiresIn) {
		this.expiresIn = expiresIn;
	}

	/**
	 * @return Returns the createTime.
	 */
	public int getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime The createTime to set.
	 */
	public void setCreateTime(int createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return Returns the userid.
	 */
	public String getUserid() {
		return userid;
	}

	/**
	 * @param userid The userid to set.
	 */
	public void setUserid(String userid) {
		this.userid = userid;
	}

	/**
	 * @return Returns the createDate.
	 */
	public String getCreateDate() {
		return createDate;
	}

	/**
	 * @param createDate The createDate to set.
	 */
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public String getTicket() {
		return ticket;
	}
	public void setTicket(String ticket) {
		this.ticket = ticket;
	}
}
